package org.example.erp.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.erp.domain.Sales;
import org.example.erp.domain.SnTable;
import org.example.erp.mapper.SalesMapper;
import org.example.erp.service.SnTableService;
import org.example.erp.mapper.SnTableMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author dell
* @description 针对表【sn_table】的数据库操作Service实现
* @createDate 2024-10-28 14:02:16
*/

@Service
public class SnTableServiceImpl extends ServiceImpl<SnTableMapper, SnTable>
    implements SnTableService{
    @Autowired
    private SnTableMapper baseMapper;
    public IPage<SnTable> findsn(Integer currentPage, Integer pageSize, String materialProductCode, String productName, Integer snId, String batchNumber){
        Page<SnTable> page = new Page<>(currentPage, pageSize);
        return baseMapper.findsn(page,materialProductCode, productName, snId,batchNumber);
    }
}




